
package com.hua.designpattern.creational.factorymethod;

public class Automobile implements Drivable {

	private int weight;

	private double price;

	private String vendor;

	@Override
	public void drive() {
		System.out.println("car moving!!");
	}

	@Override
	public void stop() {
		System.out.println("car stopped!!");
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getVendor() {
		return vendor;
	}

	public void setVendor(String vendor) {
		this.vendor = vendor;
	}

}
